
package com.beeantec.jnrerc.core.utils;

import java.io.IOException;
import java.util.Properties;

/**
 * 配置文件读取工具类
 *
 * @author Anthony
 */
public final class SystemUtil {

	private SystemUtil() {
	}

	private static final Properties properties = new Properties();

	static {
		try {
			properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("system.properties"));
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private static String getProperty(String keyName) {
		return properties.getProperty(keyName, "").trim();
	}



	public static final String PERIOD_VIDEO_PATH = getProperty("period_video_path");
	public static final String PERIOD_AUDIO_PATH = getProperty("period_audio_path");

	public static final String DOC_STORAGE_PATH = getProperty("doc_storage_path");
	public static final String PIC_STORAGE_PATH = getProperty("pic_storage_path");
}
